﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="UsernameAvailabilityValidator" Namespace="Encosia" TagPrefix="encosia" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <title></title>
  <link type="text/css" rel="Stylesheet" href="Assets/css/dialog.css" />
  <link type="text/css" rel="Stylesheet" href="Assets/css/grid.css" />
</head>
<body>
  <form id="form1" runat="server">
  <asp:ScriptManager ID="ScriptManager1" runat="server">
  </asp:ScriptManager>
  <div id="dlg" class="dialog" style="width: 450px">
    <div class="header" style="cursor: default">
      <div class="outer">
        <div class="inner">
          <div class="content">
            <h2>
              Sign Up for Your New Account</h2>
          </div>
        </div>
      </div>
    </div>
    <div class="body">
      <div class="outer">
        <div class="inner">
          <div class="content">
            <div class="grid">
              <asp:CreateUserWizard ID="CreateUserWizard" runat="server">
                <WizardSteps>
                  <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                    <ContentTemplate>
                      <table border="0">
                        <tr>
                          <td align="right">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                          </td>
                          <td>
                            <asp:TextBox ID="UserName" runat="server" />
                            <asp:RequiredFieldValidator ID="UsernameRequired" runat="server" ControlToValidate="UserName"
                              ErrorMessage="*" ToolTip="Username is required." ValidationGroup="CreateUserWizard" />
                            <encosia:UsernameAvailabilityValidator runat="server" ControlToValidate="UserName"
                              ErrorMessage="Username is not unique" KeyPressDelay="500" MinimumLength="5" ServiceMethod="IsUsernameAvailable"
                              ServicePath="~/MembershipService.asmx" ValidateOnKeyPress="True" />
                          </td>
                        </tr>
                        <tr>
                          <td align="right">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                          </td>
                          <td>
                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                              ErrorMessage="*" ToolTip="Password is required." ValidationGroup="CreateUserWizard" />
                          </td>
                        </tr>
                        <tr>
                          <td align="right">
                            <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
                          </td>
                          <td>
                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                              ErrorMessage="*" ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard" />
                          </td>
                        </tr>
                        <tr>
                          <td align="right">
                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                          </td>
                          <td>
                            <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                              ErrorMessage="*" ToolTip="E-mail is required." ValidationGroup="CreateUserWizard" />
                          </td>
                        </tr>
                        <tr>
                          <td align="right">
                            <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Security Question:</asp:Label>
                          </td>
                          <td>
                            <asp:TextBox ID="Question" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                              ErrorMessage="*" ToolTip="Security question is required." ValidationGroup="CreateUserWizard" />
                          </td>
                        </tr>
                        <tr>
                          <td align="right">
                            <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Security Answer:</asp:Label>
                          </td>
                          <td>
                            <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                              ErrorMessage="*" ToolTip="Security answer is required." ValidationGroup="CreateUserWizard" />
                          </td>
                        </tr>
                        <tr>
                          <td align="center" colspan="2">
                            <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                              ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                              ValidationGroup="CreateUserWizard"></asp:CompareValidator>
                          </td>
                        </tr>
                        <tr>
                          <td align="center" colspan="2" style="color: Red;">
                            <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                          </td>
                        </tr>
                      </table>
                    </ContentTemplate>
                  </asp:CreateUserWizardStep>
                  <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server" />
                </WizardSteps>
              </asp:CreateUserWizard>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer">
      <div class="outer">
        <div class="inner">
          <div class="content">
          </div>
        </div>
      </div>
    </div>
  </div>
  </form>
</body>
</html>
